#include <stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	int i = 1;
	scanf("%d %d", &a, &b);
	while(i * a % b != 0)
	{
		i++;
	}
	printf("%d", a * i);
	return 0;
}


